import "package:ct_pa_majordomo/pages/device/entrance_guard/add_entrance_guard/index.dart";
import "package:ct_pa_majordomo/pages/device/entrance_guard/detail/index.dart" as entrance_guard;
import "package:ct_pa_majordomo/pages/device/entrance_guard/face/index.dart";
import "package:ct_pa_majordomo/pages/device/entrance_guard/face/widgets/detail/index.dart" as face;
import "package:ct_pa_majordomo/pages/device/entrance_guard/index.dart";
import "package:ct_pa_majordomo/pages/device/entrance_guard/setting/index.dart";
import "package:ct_pa_majordomo/pages/device/entrance_guard/widgets/operation_record/index.dart";
import "package:ct_pa_majordomo/router/keys.dart";
import "package:flutter/material.dart";


///门禁路由
class EntranceguardRoutes {
  static Map<String, WidgetBuilder> getRoutes(BuildContext context) {
    return {
      ///门禁
      Keys.DEVICE_ENTRANCEGUARD: (context, {arguments}) => const EntranceGuard(),
      ///门禁 添加门禁
      Keys.DEVICE_ADD_ENTRANCEGUARD: (context, {arguments}) => const AddEntranceGuard(),
      ///门禁 详情
      Keys.DEVICE_ENTRANCEGUARD_DETAIL: (context, {arguments}) => entrance_guard.Detail(faceLockId: arguments),
      ///门禁 人脸列表
      Keys.DEVICE_ENTRANCEGUARD_FACE: (context, {arguments}) => Face(info: arguments),
      ///门禁 人脸详情
      Keys.DEVICE_ENTRANCEGUARD_FACE_DETAIL: (context, {arguments}) => face.Detail(info: arguments,),
      ///门禁 操作记录
      Keys.DEVICE_ENTRANCEGUARD_OPERATION: (context, {arguments}) => const OperationRecord(),
      ///门禁 设置
      Keys.DEVICE_ENTRANCEGUARD_SETTING: (context, {arguments}) => Setting(info: arguments,),
    };
  }
}